<template>
  <van-row>
    <van-notice-bar mode="closeable">
      欢迎使用计算机在线学习系统，您可以选择在线学习或者在线答题
    </van-notice-bar>
    <img src="../../assets/cover1.jpg" width="100%" height="500" alt="">
    <div class="bottom" style="margin-top: 100px">
      <van-row type="flex" justify="space-around">
        <van-button size="normal" type="primary" style="cursor: pointer"  @click="goTo('/questions/study/answer/single')">在线学习</van-button>
        <van-button size="normal" type="primary" style="cursor: pointer" @click="goTo('/questions/test/answer/single')">在线答题</van-button>
      </van-row>
    </div>
  </van-row>

</template>

<script>
import { Dialog } from 'vant'
export default {
  name: 'index',
  data () {
    return {
    }
  },
  mounted(){
  },
  methods: {
    goTo(path){
      this.$router.replace(path);
    }
  }
}
</script>

<style scoped>
</style>
